package org.fangzz.cameramgr.cameramonitor.model;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by XxChen on 2018/6/22.
 */



@Entity
@Table(name = "store_tb")
public class Store extends BaseIdentity{
    @Column(nullable = false)
    private String storeName;

    private String address; //网吧地址

    @Column(nullable = false)
    private String bossName;  //老板名字

    @Column(nullable = false)
    private String bossPhone; //老板电话

    private String areaCode; //区域编码

    private Integer maxTranscodeThread;  //最大转码路数

    @OneToMany(fetch = FetchType.EAGER, mappedBy = "store", targetEntity = DisplayResolution.class)
    private List<DisplayResolution> resolutions = new ArrayList<>();

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBossName() {
        return bossName;
    }

    public void setBossName(String bossName) {
        this.bossName = bossName;
    }

    public String getBossPhone() {
        return bossPhone;
    }

    public void setBossPhone(String bossPhone) {
        this.bossPhone = bossPhone;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public Integer getMaxTranscodeThread() {
        return maxTranscodeThread;
    }

    public void setMaxTranscodeThread(Integer maxTranscodeThread) {
        this.maxTranscodeThread = maxTranscodeThread;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public List<DisplayResolution> getResolutions() {
        return resolutions;
    }

    public void setResolutions(List<DisplayResolution> resolutions) {
        this.resolutions = resolutions;
    }
}
